<!doctype html>
<html>
   <head>
    <title>云南大学图书管</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="UTF-8" />
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/headernav.css">
	   <script type="text/javascript" src="js/jquery-1.9.js" ></script>
     <script type="text/javascript" src="js/bootstrap.min.js" ></script>
	 
   </head>
   <body>
  <script type="text/javascript">
  function redirectURL(){
	  var table = document.getElementById("work-table");
	  	var rows = table.rows.length;//行数   
	  	var cells = table.rows.item(3).cells.length;//列数  
	  	var man= table.rows[0].cells[1].innerHTML;
	  	var table_value='';
	 
	  	for(i=3;i<rows;i++){
	  		for(j=0;j<cells;j++){
	  			table_value=table_value+table.rows[i].cells[j].innerHTML+'---';
	  		}
		}
	    window.location="./Classes/download_excel.php?table="+table_value+"&rows="+rows+"&man="+man;
  }
  </script>
  <div id="logo">
  <img src="images/icon.png">
  <span>图书馆勤工办公系统</span>
</div>
   <!--导航-->
  <nav class="navbar navbar-default" role="navigation" id="header_nav">

  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
     
    </div>
 
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">

        <li ><a href="index.html">首页</a></li>
         <li class="dropdown"> 
<a href="#考勤管理">考勤管理</a>
              <ul class="dropdown-menu">
                 <li><a href="index.html">我的考勤</a></li>
		 <li><a href="workattend.html">学生考勤</a></li>
              </ul>
        </li>
       <li class="dropdown"> 
<a href="#考勤管理">公共通讯录</a>
              <ul class="dropdown-menu">
                 <li><a href="stdinfo.html">学生通讯录</a></li>
		 <li><a href="teachinfo.html">老师通讯录</a></li>
              </ul>
        </li>
            <li class="dropdown"> 
	<a href="#">值班管理</a>
              <ul class="dropdown-menu">
                 <li><a href="zhibanbiao.html">值班表</a></li>
		 		<li><a href="dutymanage.html">排班</a></li>
              </ul>
        </li>
         <li class="dropdown"> 
	<a href="#">财务管理</a>
              <ul class="dropdown-menu">
                 <li><a href="salarymanage1.html">本科生工资</a></li>
		 		<li><a href="salarymanage2.html">研究生工资</a></li>
              </ul>
        </li>
	 <li class="dropdown"> 
<a href="#考勤管理">报表管理</a>
              <ul class="dropdown-menu">
                 <li><a href="zhibanbiao.html">值班表</a></li>
		 <li><a href="gongzuobiao.html">勤工登记表</a></li>
		<li><a href="shangshu.html">上书表</a></li>
		<li><a href="bengongzuobiao.html">本科生学生工资表</a></li>
		<li><a href="gongzi1.html">研究生学生工资表</a></li>
              </ul>
        </li>
        <li class="dropdown"> 
<a href="#考勤管理">系统管理</a>
              <ul class="dropdown-menu">
                 <li><a href="sysadmin.html">用户管理</a></li>
		 <li><a href="workattend.html">数据备份恢复</a></li>
              </ul>
        </li>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">
        
        <li class="dropdown">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">和相鹏<span class="caret"></span></a>
          <ul class="dropdown-menu" role="menu">
            <li><a href="#">个人信息</a></li>
           
          </ul>
        </li>
        <li><a href="#">退出</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>

<div id="mainbody"  >
<div class="col-lg-10" id="charge">
    <table class="table table-bordered" id="work-table"  name="work-table">
      <tr id="table-nav">
        <td COLSPAN = "6"> 用工部门：图书馆</td>
        <td> 填表人：陈欣辉</td>
        
        
      </tr>
      <tr>
        <td ROWSPAN = "2">编号</td>
        <td ROWSPAN = "2">学院</td>
        <td ROWSPAN = "2">学号</td>
        <td ROWSPAN = "2">姓名</td>
        <td COLSPAN = "2">勤工助学用工</td>
        <td ROWSPAN = "2">金额（元）</td>
    
       </tr>
        <tr>
        <td>时间段</td>
        <td>总时间（天数）</td>
        
       </tr>
        <tr>
        <td>1</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
        <tr>
         <td>2</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
      <tr>
        <td>3</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
       </tr>
       
        <tr>
        <td>9</td>
        <td>软件学院</td>
        <td>20121170078</td>
        <td>杨一龙</td>
        <td>9月</td>
        <td>8.5h</td>
        <td>350</td>
     
       </tr>
       
      <tr>
        <td>4</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
      <tr>
        <td>5</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
     <tr>
        <td>5</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
     <tr>
        <td>5</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
     <tr>
        <td>5</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
     
       </tr>
      <tr>
        <td>5</td>
        <td>软件学院</td>
        <td>20121180094</td>
        <td>***</td>
        <td>9月</td>
        <td>7.5h</td>
        <td>150</td>
       </tr>
   </table>
</div>
</div>
     <center><input type="button" value="下载" onClick = "download()"/>
     			  <a href="#" onclick="redirectURL();" >Mark</a> </center>
<footer>
	<div >
		 <div class="panel panel-default" id="foot" >
      <div class="panel-body" >
        版权信息 © 2014, 云南大学图书馆 
     </div>
</div>
		
	</div>
  </footer>	
   </body>
</html>